﻿namespace S.PurchaseAndSales.Infrastructure
{
    public interface IBaseRepository<T>
    {
        #region 异步增删改查
        Task<bool> AddAsync(T t);
        Task<bool> DeleteAsync(int id);
        Task<bool> UpdateAsync(T t);
        Task<List<T>> GetAllAsync();

        Task<T> GetByIdAsync(int id);
        #endregion
    }
}